package com.quanyan.place.service;

import com.quanyan.common.Plugin.PageObj;
import com.quanyan.place.entity.ReqAdminUserVo;
import com.quanyan.place.entity.apireq.ReqPlaceOrderSearchVo;
import com.quanyan.place.entity.apiresp.RespAdminUserAuthInfo;
import com.quanyan.place.entity.apiresp.RespAdminUserInfo;

import java.util.List;

/**
 * 场馆用户授权模块
 * Created by Administrator on 2016/6/14.
 */
public interface PlaceAuthUserService {

    /**
     * 用户列表
     * @param reqAdminUserVo
     * @return
     */
    PageObj<List<RespAdminUserInfo>> getAdminUserByCity(ReqAdminUserVo reqAdminUserVo);

    /**
     * 场馆用户授权
     * @param reqAdminUserVo
     * @return
     */
    Integer insertAuthUser(ReqAdminUserVo reqAdminUserVo);

    /**
     * 根据场馆id查询用户
     * @param placeID
     * @return
     */
    RespAdminUserAuthInfo getAdminUserAuthByPlaceId(Integer placeID);

    /**
     * 删除(取消授权)
     * @param reqAdminUserVo
     * @return
     */
    Integer deleteAdminUserAuthByPlaceIdAndUserId(ReqAdminUserVo reqAdminUserVo);
}
